package com.example.aiinterview.service;

import com.example.aiinterview.model.Interview;
import com.example.aiinterview.model.User;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface InterviewService {
    String extractTextFromFile(MultipartFile file) throws IOException;
    Interview createNewInterview(User user, String resumeContent, String jobPosition);
    List<String> generateInterviewQuestions(Interview interview, int questionCount);
    void saveUserAnswer(Interview interview, int questionNumber, String answer);
    void evaluateAnswersAndFinalize(Interview interview);
    Interview findById(Long id);
    List<Interview> findByUser(User user);
    Interview saveInterview(Interview interview);
    String generateResumeSummary(String resumeContent, String jobPosition);
    String generateFirstQuestion(String prompt);
}
